<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <base href="<?php echo base_url() ?>"/>
    <title>乐天！ &raquo; 首页</title>
    <meta name="generator" content="Order 1.0"/>
    <link rel="stylesheet" href="css/style.css" type="text/css"/>
    <link rel="stylesheet" href="jquery-ui/css/ui-lightness/jquery-ui-1.9.0.custom.min.css"/>
    <script src="jquery-ui/js/jquery-1.8.2.js" type="text/javascript" charset="utf-8"></script>
    <script src="jquery-ui/js/jquery-ui-1.9.0.custom.min.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="order_detail" style="display: none;background:white;width:1200px;padding:20px;margin:0px;">
</div>
<div id="bgDiv"></div>
<div id="container">
    <div id="header">
        <div id="header-inner">
            <h1><span><a href="#">乐天！</a></span></h1>

            <h2>订单管理系统</h2>

            <div class="clear"></div>
            <ul class="sw_menu">
                <li><a href=<?php echo site_url('login')?>  >首页</a></li>
                <li><a href=# class="sw_menu_current">管理</a></li>
                <li><a href=#>筛选</a></li>
                 <?php
                        if ($is_admin)
                            echo '<li><a href=' . site_url('admin') . '>后台</a></li>';
                 ?>
            </ul>
        </div>
    </div>
    <div id="sidebar">
        <div id="sidebar-inner">
            <ul>
                        <li>
                            <?php
                            if($ret['p1']){
                                echo  '<a  href='.site_url("order/new_order") .'>新建订单</a>';
                            }
                            else{
                               echo  '<a style="color:gray"  href="javascript:void(0)">新建订单</a>';
                            }
                            ?>
                           
                        </li>
                        <li>
                            <?php
                            if($ret['p2']){
                                echo  '<a  href='.site_url("order/wait_for_pay") .'>待付款订单</a>';
                            }
                            else{
                               echo  '<a style="color:gray"  href="javascript:void(0)">待付款订单</a>';
                            }
                            ?>
                        </li>
                        <li>
                            <?php
                            if($ret['p3']){
                                echo  '<a  href='.site_url("order/wait_for_buy") .'>待购货订单</a>';
                            }
                            else{
                               echo  '<a style="color:gray"  href="javascript:void(0)">待购货订单</a>';
                            }
                            ?>
                        </li>
                        <li>
                            <?php
                            if($ret['p4']){
                                echo  '<a  href='.site_url("order/wait_for_delivery") .'>待发货订单</a>';
                            }
                            else{
                               echo  '<a style="color:gray"  href="javascript:void(0)">待发货订单</a>';
                            }
                            ?>
                        </li>
                        <li class="select">>
                        <?php
                            if($ret['p5']){
                                echo  '<a  href='.site_url("order/order_allocation") .'>已发货订单</a>';
                            }
                            else{
                               echo  '<a style="color:gray"  href="javascript:void(0)">已发货订单</a>';
                            }
                            ?>                    
                        </li>
                <div class="clear"></div>
            </ul>
        </div>
    </div>
    <div class="clear"></div>
    <div id="content-wrapper">
        <div id="content">
            <h3 id="comments-title"><em>已发货订单列表</em></h3>

            <div class="comment-form">
                <table>
                    <tr>
                        <th>日期</th>
                        <th>订单号</th>
                        <th>商品编号</th>
                        <th style="width:134px">图片</th>
                        <th>销售链接</th>
                        <th>颜色/尺寸</th>
                        <th>数量</th>
                        <th>单价</th>
                        <th>金额</th>
                        <th>运费</th>
                        <th>总金额</th>
                        <th>客户信息</th>
                        <th style="width: 60px">收款方式</th>
                        <th style="width: 120px">入账日期</th>
                    </tr>
                    <?php
                    if (!empty($list)) {
                        foreach ($list as $k => $v) {
                            echo "<tr > ";
                            echo "<td>" . $v['orderTime'] . "</td>";
                            echo "<td>" . $v['orderNumber'] . "</td>";
                            echo "<td > " . $v['commodityNumber'] . "</td > ";
                            echo "<td ><div style=\"border:1px solid #ffecf1;padding:3px;background-color:#efefef\">
<img src = '" . $v['imagePath'] . "' width='126px' height='150px' /></div></td > ";
                            echo "<td ><a href = '" . $v['link'] . "' target = '_blank' > " . $v['link'] . "</a ></td > ";
                            echo "<td > " . $v['colorAndSize'] . "</td > ";
                            echo "<td > " . $v['amount'] . "</td > ";
                            echo "<td > " . $v['unitPrice'] . "</td > ";
                            echo "<td > " . $v['money'] . "</td > ";
                            echo "<td > " . $v['deliveryMoney'] . "</td > ";
                            echo "<td > " . $v['total'] . "</td > ";
                            echo "<td > " . $v['clientInfo'] . "</td > ";
                            echo "<td > " . $v['paymentMethod'] . "</td > ";
                            echo "<td > " . $v['cashEntryTime'] . "</td > ";
                            echo "</tr >";
                        }
                    }
                    ?>
                </table>
                <div class="clear"></div>
                <?php echo $this->pagination->create_links(); ?>
                <div class="clear"></div>
            </div>
        </div>
        <div class="clear"></div>
        <div id="footer">
            <hr/>
            <ul>
                <li>
                    Powered by <a href=#>Swan 1.3.0</a>
                </li>
            </ul>
        </div>
    </div>
</div>
</body>
</html>

